#include"lottery_sys.h"
//#include"ui.h"
/*
   该函数用于：对已处理好的的用户链表的文件化操作
   无返回值                                                                                                     
   参数：该用户链表的头结点

 */
void save_buylott_list(L_buyed_t* buyed_head)
{
	FILE* fp = NULL;
	L_buyed_t* cur = NULL;
	if(NULL == buyed_head)
	{   
		return;
	}   
	fp = fopen(HIS_LOTTERY_FILE,"w");
	if(NULL == fp) 
	{   
		return;
	}   
	cur = buyed_head -> next;
	while(cur != NULL)
	{   
		fwrite(cur,sizeof(L_buyed_t),1,fp);
		cur = cur -> next;
	}   
	fclose(fp);
}

